package ServerUpdate;

import java.util.Observable;
import java.util.Observer;

import Watch.DirDataChanges;

public class SObserver implements Observer
{
	DirDataChanges dirDataChange = null;
	ServerUpdater updater;
	
	public SObserver(ServerUpdater sUpdater) 
	{
		updater = sUpdater;
	}
	
	@Override
	public void update(Observable arg0, Object arg1) 
	{
		//get the object with the changes
		dirDataChange = (DirDataChanges)arg1;
		updater.jobsQueue.add(dirDataChange);
	}

}
